package com.example.xuanmei.video.entity;

import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 视频实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "videos")
public class Video extends BaseEntity {
    @Column(nullable = false)
    private Long userId;
    
    @Column(nullable = false)
    private String title;
    
    private String cover;  // 封面图URL
    private String videoUrl;  // 视频URL
    private String description;
    
    private Long likes;      // 点赞数
    private Long comments;   // 评论数
    private Long views;      // 播放量
    private Long shares;     // 分享数
    
    private Integer duration; // 视频时长（秒）
    private String category;  // 视频分类
}
